package entity

type FirstFaultType struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	Name string `gorm:"column:name;type:VARCHAR(255)" json:"name"`

	Desc string `gorm:"column:desc;type:VARCHAR(255)" json:"desc"`

	HasChild bool `gorm:"column:has_child;type:JSON" json:"has_child"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *FirstFaultType) TableName() string {
	return "first_fault_types"
}
